package util;

import entity.Record;

import java.util.List;

public class random {
    public String r(){
        String rr = null;
        for (int i = 0; i < 30; i++) {
            int n = 1 + (int)(Math.random() * 100000000);
            rr = "kc"+n;
        }
        return rr;
    }

    public String random(List<Record> li){
        String ran = r();
        for (Record r:li){
            if(r.getOrder().equals(ran)){
                random(li);
            }
        }
        return ran;
    }
}
